<template>
  <button @click="removeTodo(item.id)">删除</button>
</template>

<script>
  export default {
    name: 'TodoRemove',
    props: ['item'],
    methods: {
      /**
       * 删除代办
       */
      removeTodo(id) {
        this.$emit('removeTodo', id);
      }
    },
  }
</script>

<style lang="scss" scoped>

</style>